package com.cqut.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface CodeManagerMapperExtra {

	List<Map<String, Object>> getListByCodeName(
			@Param("codeName")
			String codeName, 
			@Param("parentId")
			String parentId,
			@Param("start")
			int start, 
			@Param("end")
			int end);

	Object duplicateCheckingCodeName(
			@Param("codeName")
			String codeName);

	int deleteByLikeParamCode(
			@Param("codeNoArray")
			String[] codeNoArray);

	List<Map<String, Object>> selectCodeTablesWithLimit(
			@Param("codeName")
			String codeName,
			@Param("parentCode")
			String parentCode,
			@Param("start")
			int start,
			@Param("end")
			int end);


	Map<String, Object> updateCode(
			@Param("codeName") String codeName,
			@Param("codeId") String codeId);

	Map<String, Object> getDetailById(
			@Param("codeId")
			String codeId);

	long getListCountByCodeName(
			@Param("parentId")
			String parentId,
			@Param("codeName")
			String codeName);

	List<Map<String, Object>> getCodeType(
			@Param("codeType")
			String codeType);

	Map<String, Object> findMaxCodeId(
			@Param("parentCode")
			String parentCode);

	long CheckCodeType(
			@Param("codeType")
			String codeType);
}
